package com.example.accounting.model;

import ohos.data.orm.OrmObject;
import ohos.data.orm.annotation.Entity;
import ohos.data.orm.annotation.PrimaryKey;


@Entity(tableName = "Account")
public class AccountInfo extends OrmObject {
    @PrimaryKey(autoGenerate = false)
    private int accountId;

    private String date;

    private double money;

    private String type;

    private String info;

    private String account;

    public AccountInfo() {

    }

    public AccountInfo(int accountId, String date, double money, String type, String info, String account) {
        this.accountId = accountId;
        this.date = date;
        this.money = money;
        this.type = type;
        this.info = info;
        this.account = account;
    }

    public int getAccountId() {
        return accountId;
    }

    public String getDate() {
        return date;
    }

    public String getType() {
        return type;
    }

    public String getInfo() {
        return info;
    }

    public double getMoney() {
        return money;
    }

    public String getAccount() {
        return account;
    }


    public void setAccountId(int accountId) {
        this.accountId = accountId;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public void setAccount(String account) {
        this.account = account;
    }
}

